<?php
/*@author Gabriel Bronzatti Moro*/
require_once '../model/entity/Recado.class.php';

Class RestauraRecado{
    
    private $mensagensVector;
    private $recado;
    
    public function __construct() {
       
       $this->recado= new Recado();
    }
    
    public function getMensagens(){
        //session_start();
        $this->mensagensVector= $this->recado->getRecados($_SESSION['usuario'],$_SESSION['login']);
        return $this->mensagensVector;
    }
    public function getMensagensAmigo($nome,$email){
        //session_start();
        $this->mensagensVector= $this->recado->getRecados($nome,$email);
        return $this->mensagensVector;
    }
}